package com.zxy.employee.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class EmployeeDto {

    private Integer employeeId;

    private String employeeName;

    private Boolean  gender;

    private Integer deptId;

    private Boolean employStatus;

    private String phone;

    private String idCard;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate birthday;

    private Boolean employeeMarryStatus;

    private String email;

    private String address;

    private String hobby;

    private String remark;

    private String deptName;
}
